package com.qualysoft.person;


import com.qualysoft.checkin.GoogleMail;

public class Agnes extends Human implements HRConsultant {

    public Agnes() {
        super("Török Ágnes", "+36203998883", "agnesnek@qualysoft.com");
    }

    @Override
    public void call(Human human) {
        // Hi Dude, if you want Agnes to call you, you have to add your real
        // contact data at instantiating You: name, phone, mail


        System.out.println("========================================================================================\n");
        if (human.needCall()) {
            final String message = String.format("Ágnes please call me back: \n\n%s\n%s\n%s", human.getName(), human.getEmail(), human.getPhone());

            try {
                String recipientEmail = this.getEmail();
                GoogleMail.send(recipientEmail, message);
                System.out.println("Dude, you rocks!!!");
                System.out.println("Agnes will call you soon... ");
            } catch (Exception e) {

                System.out.println("Checkin failed! If you are interested in a Java Developer position at our company, please");
                System.out.println(String.format(" - contact Agnes per mail: %s", this.getEmail()));
                System.out.println(String.format(" - or call: %s \n", this.getPhone()));

            }
        } else {
            System.out.println("Sorry, you are not JavaNinja.");
        }
        System.out.println("========================================================================================\n");
    }

    @Override
    public boolean isBlondie() {
        return true;
    }

    public String getLinkedInProfile() {
        return "http://hu.linkedin.com/pub/torok-agnes/54/200/5aa/";
    }

}
